
import { type IComponentConfig, ChannelEnum } from '../../types'

const props: IComponentConfig[] = [{
  type: 'select',
  component: 'eSelect',
  label: '组件名',
  model: 'code',
  props: {
    transfer: true,
    dataSource: {
      type: 'component',
      value: []
    },
    filterable: true
  },
  defaultValue: ''
}, {
  type: 'codeEditor',
  component: 'CodeEditor',
  model: 'props',
  label: 'Props',
  defaultValue: '{}',
  props: {
    language: 'json'
  }
}]

const drag = {
  compName: 'CustomComponent',
  label: '自定义组件',
  classify: {
    label: '高级',
    value: 'advanced'
  },
  channel: ChannelEnum.PC,
  group: {
    label: '常规',
    value: 'basic'
  },
  icon: 'icon-bxs-component'
}

export default {
  drag,
  props
}
